package routes

import (
	v1 "ginblog/api/v1"
	"github.com/gin-gonic/gin"
)

func ArticleRoutes(router *gin.RouterGroup) {
	router.POST("article/add", v1.AddArticle)
	router.GET("article", v1.GetArticles)
	router.GET("article/:title", v1.GetArticle)
	router.PUT("article/:id", v1.EditArticle)
	router.DELETE("article/:id", v1.DeleteArticle)
}
